#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

//https://www.nowcoder.com/practice/e160b104354649b69600803184094adb?tpId=196&tqId=40514&ru=/exam/oj

class Solution
{
public:

    bool hostschedule(vector<vector<int> >& sc)
    {
        sort(sc.begin(), sc.end());

        for (int i = 1; i < sc.size(); i++)
        {
            if (sc[i - 1][1] > sc[i][0]) return false;
        }
        return true;
    }
};

int main()
{
    return 0;
}